@extends('/index/layouts.app')

@section('title',$row->title)
@section('keywords', $row->keywords)
@section('description', $row->abstract)


@section('css')

@stop


@section('content')

    <div class="page" style="padding:30px 0;">
        <div class="narclass">
            <ul>
                @foreach($nav as $category)
                    <li class="cur">
                        <a href="{{ $category['url'] }}" title="{{ $category['title'] }}">{{ $category['title'] }}</a>
                    </li>
                @endforeach
            </ul>
        </div>
        <div class="right">
            <div class="posit">当前位置:首页&nbsp;&nbsp;»&nbsp;&nbsp;
                <a href="{{ $mbx['level_1']['url'] }}"
                   title="{{ $mbx['level_1']['title'] }}">{{ $mbx['level_1']['title'] }}</a>&nbsp;&nbsp;»&nbsp;&nbsp;
                <a href="{{ $mbx['level_2']['url'] }}"
                   title="{{ $mbx['level_1']['title'] }}">{{ $mbx['level_2']['title'] }}</a>
            </div>

            @if(request()->route()->named('articles.show'))
                <div class="newXq">
                    <dt class="Xqtitle">{{ $row->title }}</dt>
                    @if ($row->category->parent_id > 0)
                        <dd class="Xqdate">发布于：{{ $row->created_at->format('Y-m-d') }}</dd>
                    @endif
                    {!! $row->content !!}
                </div>
            @else
                <div class="pnews">
                    <dl>
                        @foreach($list as $article)
                            <dt class="ptitleB"><a
                                    href="{{ route('articles.show',['article'=>$article->id]) }}">{{ $article->title }}</a>
                            </dt>
                            <dd class="pdate">发布于:{{ $article->created_at->format('Y-m-d') }}</dd>
                        @endforeach
                    </dl>
                </div>
                <div style="float: left;margin-top: 10px">
                    {{ $list->links() }}
                </div>
            @endif

        </div>
    </div>

@stop

@section('js')

@stop
